package approve.model;

import java.io.Serializable;

public class Template implements Serializable{
	private static final long serialVersionUID = 1L;
	private Integer iDTemplate;
	private String templateName;
	private Integer iDConfigStaticLang;
	private String description;

	public Template() {}
	public Template(Integer iDConfigStaticLang) {
		this.iDConfigStaticLang = iDConfigStaticLang;
	}

	public Template(Integer iDTemplate, String templateName,Integer iDConfigStaticLang, String description) {
		super();
		this.iDTemplate = iDTemplate;
		this.templateName = templateName;
		this.iDConfigStaticLang = iDConfigStaticLang;
		this.description = description;
	}

	public Integer getiDTemplate() {
		return iDTemplate;
	}

	public void setiDTemplate(Integer iDTemplate) {
		this.iDTemplate = iDTemplate;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}


	public Integer getiDConfigStaticLang() {
		return iDConfigStaticLang;
	}

	public void setiDConfigStaticLang(Integer iDConfigStaticLang) {
		this.iDConfigStaticLang = iDConfigStaticLang;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((iDTemplate == null) ? 0 : iDTemplate.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Template other = (Template) obj;
		if (iDTemplate == null) {
			if (other.iDTemplate != null)
				return false;
		} else if (!iDTemplate.equals(other.iDTemplate))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Template [templateName=" + templateName + "]";
	}
}